package com.zuiacsn.forum.service;

import com.zuiacsn.forum.model.ArticleReply;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IArticleReplayService {
    /**
     * 新增帖子回复
     * @param articleReply
     */
    @Transactional
    void create(ArticleReply articleReply);

    /**
     * 根据帖子id查询回复列表
     * @param articleId
     * @return
     */
    List<ArticleReply> selectByArticleId(Long articleId);
}
